from flask_restful import fields  # type: ignore

from libs.helper import  TimestampField

user_addr_fields = {
    "id": fields.String,
    "account_id": fields.String,
    "province_id": fields.Integer,
    "city_id": fields.Integer,
    "district_id": fields.Integer,
    "province": fields.String,
    "city": fields.String,
    "district": fields.String,
    "postal_code": fields.String,
    "addr": fields.String,
    "name": fields.String,
    "status": fields.Boolean,
    "is_default": fields.Boolean,
    "ver": fields.Integer,
    "created_at": TimestampField,
    "updated_at": TimestampField,
}

user_addr_list_fields={
    "total": fields.Integer,
    "has_more": fields.Boolean,
    "data": fields.List(fields.Nested(user_addr_fields)),
    "message": fields.String,
}